package com.dhcc.core.modules.system.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

/**
 * 参数
 * 
 * @ClassName: DictItemParams
 * @Description: 描述
 * @author: cyf
 * @date: 2018年9月12日 上午10:22:41
 */
public class DictItemParams {
    // 名称
    private String name;
    // 值
    private String key;
    // 排序
    private Integer weight;

    public static JSONArray getFields() {
        JSONArray fields = new JSONArray();
        JSONObject name = new JSONObject();
        name.put("title", "名称");
        name.put("field", "name");
        name.put("width", "150");
        name.put("required", true);
        fields.add(name);
        JSONObject key = new JSONObject();
        key.put("title", "值");
        key.put("field", "key");
        key.put("width", "150");
        key.put("required", true);
        fields.add(key);
        JSONObject weight = new JSONObject();
        weight.put("title", "排序");
        weight.put("type", "number");
        weight.put("field", "weight");
        weight.put("width", "150");
        fields.add(weight);
        return fields;
    }
    


    /**
     * @return String return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return String return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @param key the key to set
     */
    public void setKey(String key) {
        this.key = key;
    }

    /**
     * @return Integer return the weight
     */
    public Integer getWeight() {
        return weight;
    }

    /**
     * @param weight the weight to set
     */
    public void setWeight(Integer weight) {
        this.weight = weight;
    }

}
